package com.demo.lesson06.controller;

import com.demo.lesson06.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @GetMapping("/demo")
    public Result<String> hello(){
        return Result.success("hello world");
    }
}
